#include <dispatch_server/dispatch_server.h>
#include <ros/ros.h>

#include <iostream>
#include <chrono>
#include <ctime>
#include <thread>
#include <ratio>
#include <typeinfo>

using namespace moying::navigation;
using namespace moying;

std::string sch_root_path = "./";


int main(int argc, char **argv)
{   

    ros::init(argc, argv, "dispatch_server_test");
    ros::NodeHandle nh("~");
    
    bool ret = DispatchServer::instance()->initialize();
    if(!ret){
        LOG_WARN("DispatchServer initialize failed");
    }else{
        LOG_INFO("DispatchServer initialize success");
    }
    DispatchServer::instance()->run();


    ros::spin();
    ros::waitForShutdown();
    return 0;
}

